Skip to content

Remove unnecessary cgi module import#67

Open
mina86 wants to merge 1 commit into
mankyd:masterfrom
mina86:a
Open

Remove unnecessary cgi module import#67
mina86 wants to merge 1 commit into
mankyd:masterfrom
mina86:a

Conversation

@mina86

@mina86 mina86 commented Jan 28, 2025

Copy link
Copy Markdown
Contributor

cgi module has been removed in Python 3.13.
Remove the unused import so that the code runs.

@randomstuff

Copy link
Copy Markdown

There is another one (used as a fallback) in https://github.com/mankyd/htmlmin/blob/master/htmlmin/escape.py#L33

@mina86

mina86 commented Feb 19, 2025

Copy link
Copy Markdown
Contributor Author

I didn’t touch that one because it’s harmless on newer Pythons and it allows code to run on older Pythons.

@lemonyte

lemonyte commented Mar 3, 2025

Copy link
Copy Markdown

Hi, what's the status on this PR? Seems like a rather trivial fix to support 3.13.

Edit: I see the package hasn't been updated/maintained in 8 years. Perhaps we could contact the owner to ask if another maintainer can be appointed?

@randomstuff

Copy link
Copy Markdown

Perhaps we could contact the owner to ask if another maintainer can be appointed?

I have just sent sent an email to the maintainer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants